package com.itaem.community.modules.infrastructure.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>项目名称: community </p>
 * <p>文件名称: UserPhoneCreateDTO </p>
 * <p>描述: [类型描述] </p>
 * <p>创建时间: 2020/10/28 </p>
 * <p>作者信息: tomato</p>
 *
 * @author tomato
 * @version v1.0
 */
@Data
@NotNull(message = "请上传数据")
@ApiModel(value="用户信息新增对象（手机号码）", description="要注册的用户的信息")
public class UserPhoneCreateDTO {

    @NotBlank(message = "要注册的用户名不能为空")
    @ApiModelProperty(value = "要注册的用户名")
    private String username;

    @NotBlank(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @NotBlank(message = "登录密码不能为空")
    @ApiModelProperty(value = "登录密码")
    private String password;

    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "即将注册的用户的角色id")
    private Integer roleId;

    @NotBlank(message = "性别不能为空")
    @ApiModelProperty(value = "用户性别")
    private String gender;

    @NotNull(message = "所属物业id不能为空")
    @ApiModelProperty("所属物业id")
    private Integer companyId;
}
